/* MermaidRenderer.css */
.mermaid-renderer-container {
  position: relative;
  margin: 1rem 0;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.toolbar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background-color: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
  flex-wrap: wrap;
}

.toolbar button {
  padding: 4px 8px;
  background: white;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.toolbar button:hover {
  background-color: #f0f3f6;
  border-color: #afb8c1;
}

.mermaid-container {
  padding: 16px;
  overflow: auto;
  width: 100%;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease;
}

.mermaid-container svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.loading, .error {
  text-align: center;
  padding: 20px;
  color: #6a737d;
}

.error {
  color: #cb2431;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6a737d;
}

.mermaid-modal-container {
  padding: 20px;
  overflow: auto;
  display: flex;
  justify-content: center;
  flex-grow: 1;
  background-color: white;
}


.mermaid-modal-container svg {
  max-width: 100%;
  max-height: 100%;
}

/* MermaidRenderer.css */
.chart-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #f8f8f8;
}

